/**
 * 设置菜单索引
 * */

const first = 'platform_first';
const second = 'platform_second';

// 获取一级菜单索引
export function getFirst() {
  return window.localStorage.getItem(first)
}

// 设置一级菜单索引
export function setFirst(index) {
  window.localStorage.setItem(first, index)
}

// 获取二级菜单索引
export function getSecond() {
  return window.localStorage.getItem(second)
}

// 设置二级菜单索引
export function setSecond(index) {
  window.localStorage.setItem(second, index)
}
